home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / wiredsprites / common files / spriteutilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-06  |  1.8 KB  |  37 lines

  1. #ifndef _SPRITEUTILITIES_
  2. #define _SPRITEUTILITIES_
  3. #ifndef __MOVIES__
  4.     #include <Movies.h>
  5. #endif
  6. #endif
  7.  
  8. // _____________________ Sprite Utilities _____________________ //
  9.  
  10. // set sprite properties for non-nil parameters, overriding or adding atoms as neccessary
  11. OSErr SetSpriteData( QTAtomContainer sprite, Point *location, short *visible, short *layer, short *imageIndex, 
  12.                         ModifierTrackGraphicsModeRecord *graphicsMode, StringPtr spriteName, 
  13.                         QTAtomContainer actionAtoms );
  14. // add a sprite to a sample
  15. OSErr AddSpriteToSample( QTAtomContainer theSample, QTAtomContainer theSprite, QTAtomID spriteID );
  16.  
  17. // add a sprite key frame sample to sprite track's media
  18. OSErr AddSpriteSampleToMedia( Media theMedia, QTAtomContainer sample, TimeValue duration, Boolean isKeyFrame,
  19.                         TimeValue *sampleTime );
  20.  
  21. // add a sprite key frame sample--and compress it in the process--to sprite track's media
  22. OSErr AddCompressedSpriteSampleToMedia( Media theMedia, QTAtomContainer sample, TimeValue duration, Boolean isKeyFrame,
  23.                         OSType dataCompressorType,
  24.                         TimeValue *sampleTime );
  25.                         
  26. // compress a PICT with animation compressor and add image data to a sprite key sample's images container atom
  27. OSErr AddPICTImageToKeyFrameSample( QTAtomContainer keySample, short pictID, RGBColor *keyColor, QTAtomID id, 
  28.                         FixedPoint *registrationPoint, StringPtr imageName );
  29.                         
  30. // add compressed image data to a sprite key sample's images container atom
  31. OSErr AddCompressedImageToKeyFrameSample( QTAtomContainer keySample, ImageDescriptionHandle idh, long dataSize, Ptr compressedDataPtr,
  32.                         QTAtomID imageID, FixedPoint *registrationPoint, StringPtr imageName );
  33.  
  34. // assign image group ID's to the images in a key frame sample
  35. OSErr AssignImageGroupIDsToKeyFrame( QTAtomContainer keySample );
  36.  
  37.